import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/commons/login.vue'
import Home from '../views/commons/home.vue'
import Next from '../views/commons/next.vue'
Vue.use(VueRouter)

const routes = [
	 { 
		 path: '/', redirect: '/login' 
		 },
	{
		path:'/login',
		// redirect:'/login',
		component:Login,
		name:'login'
		},
		{
			path:'/home',
			component:Home,
			name:'home'
		},
		{
			path:'/next',
			component:Next,
			name:'next'
		}
]

const router = new VueRouter({
  routes
})

export default router

